package types

type UserInfo struct {
	UserId       int64  `json:"user_id"`
	UserName     string `json:"user_name"`
	Password     string `json:"password"`
	LoginTime    string `json:"login_time"`
	RegisterTime string `json:"register_time"`
	EditTime     string `json:"edit_time"`
}

// -------------------------------------/account/login_register---------------------------------------------

// LoginReq 登录请求参数
type LoginReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
	IsAdmin  bool   `json:"is_admin"`
}

type LoginResp struct {
	ComResp
	AccessToken string `json:"access_token"`
}

// -------------------------------------/account/register---------------------------------------------

// RegisterResp 注册接口返回
type RegisterResp struct {
	ComResp
	Data UserInfo `json:"data"`
}
